#pragma once
#include "dxroids.h"
#include "GameObject.h"

namespace dxroids
{
   class Particle : public GameObject
   {

   public:

      Particle(Vector const & _pos, Vector const & _velocity, float _max_distance);      

      virtual void UpdateFrame(GameTime const & _timer, ClippingInformation const & _clip, 
         bool * _wrap_horizontal, bool * _wrap_vertical) override;

      static void Cleanup();

   private:

      virtual DXROIDS_COM_PTR<ID2D1Geometry> CreateGeometry(DXROIDS_COM_PTR<ID2D1Factory> const & _factory,
         float _scale) override;

   private:

      float max_distance_;
      int num_frames_;
      int max_frames_;

   };
}